//
//  FQEmptyBankCardTableViewCell.swift
//  SwiftProject
//
//  Created by 董駸 on 2023/4/5.
//

import UIKit

class FQEmptyBankCardTableViewCell: BaseTableViewCell {

    override var contentViewInset: UIEdgeInsets {
        .init(top: 20, left: 20, bottom: 0, right: 20)
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        backgroundColor = .white
        layer.cornerRadius = 8
        clipsToBounds = true
        
        let imageV = UIImageView(imageString: "bankCard_add")
        contentView.addSubview(imageV)
        
        imageV.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(21)
        }
        
        let titleLb = QMUILabel(font: .rSFont(16), textColor: .color51)
        titleLb.text = "添加银行卡"
        contentView.addSubview(titleLb)
        
        titleLb.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(imageV.snp.bottom).offset(14)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
